import request from "@/utils/request.js"

/**
 * 分页查询建议
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const pageQuerySuggest = (data) => {
  return request.post('/admin/suggest/page', data)
}

/**
 * 根据id查询建议
 * @param id
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const queryBySuggestId = (id) => {
  return request.get('/admin/suggest/' + id)
}

/**
 * 根据id删除建议
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const deleteByIds = (data) => {
  return request.delete('/admin/suggest', {data})
}
